var URL = "http://localhost:8080/foxit-webreader-web/WebReaderDocPath/8c9749ad-bee1-4450-9e83-53e3dde7ef3b/0.zip";

var zipFs = new zip.fs.FS();

function onerror(message) {
	console.error(message);
}

function zipImportedZip(callback) {
	var directory = zipFs.root.addDirectory("import");
	directory.importHttpContent(URL, false, function() {
		zipFs.exportBlob(callback);
	}, onerror);
}

function unzipBlob(blob, callback) {
	zipFs.importBlob(blob, function() {
		var directory = zipFs.root.getChildByName("import");
		var firstEntry = directory.children[0];
		firstEntry.getBlob("text/html",callback);
	}, onerror);
}

zip.workerScriptsPath = "./";
zipImportedZip(function(zippedBlob) {
	unzipBlob(zippedBlob, function(blob) {
		console.log(blob);
	});
});